//
//  AWOptionButton.m
//  HiWorld
//
//  Created by 赵广林 on 15/12/9.
//  Copyright © 2015年 centling. All rights reserved.
//

#import "AWOptionButton.h"

@implementation AWOptionButton


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.masksToBounds = YES;
        self.layer.cornerRadius = 5;
        self.layer.borderWidth = 1;
        self.layer.borderColor = [UIColor lightGrayColor].CGColor;
        //self.selectedImage=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_button_selected"]];
        self.selectedImage.frame=CGRectMake(CGRectGetWidth(self.frame)-15, CGRectGetHeight(self.frame)-15, 15, 15);
        self.selectedImage.hidden=YES;
        [self addSubview:self.selectedImage];
    }
    return self;
}
@end
